package com.liliudong.rommath.biz.sys.entity;

import com.liliudong.rommath.common.base.IdBaseEntity;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 用户角色关联表 实体类。
 *
 * @author liudong.li
 * @since 1.0.0
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Table(value = "sys_user_role")
public class SysUserRole extends IdBaseEntity {

    /**
     * 用户id
     */
    @Column(value = "user_id")
    private Long userId;

    /**
     * 角色id
     */
    @Column(value = "role_id")
    private Long roleId;
}
